﻿using System.Runtime.Serialization;

namespace Entities
{
    [DataContract]
    public class ErrorInformation
    {
        public ErrorInformation(string messages,
            string serviceName,
            string methodName)
        {
            Messages = messages;
            ServiceName = serviceName;
            MethodName = methodName;
        }

        [DataMember]
        public string Messages { get; private set; }

        [DataMember]
        public string ServiceName { get; private set; }

        [DataMember]
        public string MethodName { get; private set; }
    }
}
